function CheckLodop(){
	var oldVersion=LODOP.Version;
	var newVerion="4.0.0.2";	
	if (oldVersion!=newVerion) {
		document.write("<h3><font color='#FF00FF'>打印控件未安装!点击这里<a href='" + Context.Path + "/modules/global/plugin.jsp'>执行安装</a>,安装后请刷新页面。</font></h3>");
		return false;
	}
	return true;
}
function prn1_preview(id) 
{	
	CreateOneFormPage(id);	
}
function prn1_print() {		
	CreateOneFormPage();
	LODOP.PRINT();	
}
function prn1_printA() {		
	CreateOneFormPage();
	LODOP.PRINTA(); 	
}
function CreateOneFormPage(roomType,roomNo,printDate,liveDate,leaveDate,totalMoney){
	if(CheckLodop()){
		LODOP.SET_PRINT_PAPER(-13,3,415,343,"七号酒店");
		LODOP.SET_PRINT_PAGESIZE(1,880,1380,"");
		LODOP.ADD_PRINT_TEXT(47,87,260,39,"7号生态酒店结账凭证");
		LODOP.SET_PRINT_STYLEA(1,"FontSize",15);
		LODOP.SET_PRINT_STYLEA(1,"Bold",1);
		LODOP.ADD_PRINT_TEXT(103,69,39,20,"房号:");
		LODOP.ADD_PRINT_TEXT(103,115,100,20,roomNo);
		LODOP.ADD_PRINT_TEXT(127,69,39,20,"房型:");
		LODOP.ADD_PRINT_TEXT(128,115,100,20,roomType);
		LODOP.ADD_PRINT_TEXT(154,68,39,20,"时间:");
		LODOP.ADD_PRINT_TEXT(154,113,126,20,printDate);
		LODOP.ADD_PRINT_LINE(190,42,191,375,3,1);
		LODOP.ADD_PRINT_TEXT(200,65,65,20,"入住时间:");
		LODOP.ADD_PRINT_TEXT(199,137,95,20,liveDate);
		LODOP.ADD_PRINT_TEXT(234,65,65,20,"离开时间:");
		LODOP.ADD_PRINT_TEXT(232,136,95,20,leaveDate);
		LODOP.ADD_PRINT_TEXT(264,65,65,20,"消费金额:");
		LODOP.ADD_PRINT_TEXT(263,135,95,20,totalMoney);
		LODOP.SET_PRINT_STYLEA(1,"FontSize",15);
		LODOP.SET_PRINT_STYLEA(1,"Bold",1);
		
	//LODOP.ADD_PRINT_HTM(88,200,350,600,document.getElementById(id).innerHTML);
		//LODOP.PREVIEW();
		//LODOP.PRINTA(); 
		LODOP.PRINT_DESIGN();
	}
	//msgelm = checkCustomName.value;
	//alert(msgelm);
}


function check(hotelname,nameType,orderNo,roomNo,roomType,discount,name,liveDate,liveCounts,deposit,leaveDate,rent,cost,accounts,
		      refundment,payment,operator,oType,clearCost,reparCost,curTime,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){
     LODOP.SET_PRINT_PAPER(1,-10,281,512,hotelname);
	 LODOP.SET_PRINT_PAGESIZE(1,750,1350,"");
	 LODOP.ADD_PRINT_TEXT(19,94,181,30,hotelname+nameType+"凭证");
	 LODOP.SET_PRINT_STYLEA(1,"FontSize",13);
	 LODOP.SET_PRINT_STYLEA(1,"Bold",1);
	 LODOP.ADD_PRINT_HTM(5,5,71,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
		LODOP.ADD_PRINT_TEXT(51,93,43,20,"单号:");
		LODOP.ADD_PRINT_TEXT(51,136,116,20,orderNo);
		LODOP.ADD_PRINT_LINE(78,12,79,270,0,1);
		LODOP.ADD_PRINT_TEXT(85,30,41,20,"房号:");
		LODOP.ADD_PRINT_TEXT(85,76,41,20,roomNo);
		LODOP.ADD_PRINT_TEXT(85,121,63,20,"房间类型:");
		LODOP.ADD_PRINT_TEXT(85,188,80,20,roomType);
		LODOP.ADD_PRINT_TEXT(139,30,59,20,"折扣价:");
		LODOP.ADD_PRINT_TEXT(140,96,47,20,discount);
		LODOP.ADD_PRINT_TEXT(140,147,41,20,"姓名:");
		LODOP.ADD_PRINT_TEXT(140,190,80,20,name);
		LODOP.ADD_PRINT_TEXT(168,30,69,20,"入住时间:");
		LODOP.ADD_PRINT_TEXT(167,104,164,20,liveDate);
		LODOP.ADD_PRINT_TEXT(197,30,64,20,"住店:");
		LODOP.ADD_PRINT_TEXT(197,98,63,20,liveCounts);
		LODOP.ADD_PRINT_TEXT(196,176,44,20,"押金:");
		LODOP.ADD_PRINT_TEXT(196,222,45,20,deposit);
		LODOP.ADD_PRINT_TEXT(224,30,65,20,"离店时间:");
		LODOP.ADD_PRINT_TEXT(223,102,166,20,leaveDate);
		LODOP.ADD_PRINT_TEXT(250,30,45,20,"房租:");
		LODOP.ADD_PRINT_TEXT(250,87,50,20,rent);
		LODOP.ADD_PRINT_TEXT(248,142,66,20,"物品消费;");
		LODOP.ADD_PRINT_TEXT(248,211,58,20,cost);
		LODOP.ADD_PRINT_TEXT(308,30,62,20,"结账金额:");
		LODOP.ADD_PRINT_TEXT(308,94,49,20,accounts);
		LODOP.ADD_PRINT_TEXT(308,144,63,20,"退款金额:");
		LODOP.ADD_PRINT_TEXT(308,211,55,20,refundment);
		LODOP.ADD_PRINT_LINE(390,12,389,271,0,1);
		LODOP.ADD_PRINT_TEXT(331,30,64,20,"付款方式:");
		LODOP.ADD_PRINT_TEXT(331,115,153,20,payment);
		LODOP.ADD_PRINT_TEXT(364,30,69,20,"操作员:");
		LODOP.ADD_PRINT_TEXT(363,111,64,20,operator);
		LODOP.ADD_PRINT_TEXT(397,30,100,20,"谢谢你的光临！");
		LODOP.ADD_PRINT_TEXT(421,30,69,20,"宾客签名：");
		LODOP.ADD_PRINT_TEXT(445,30,57,20,"日期：");
		LODOP.ADD_PRINT_TEXT(446,89,177,20,curTime);
		LODOP.ADD_PRINT_TEXT(112,30,66,20,"开房方式:");
		LODOP.ADD_PRINT_TEXT(113,102,82,20,oType);
		LODOP.ADD_PRINT_TEXT(280,30,59,20,"清洗费:");
		LODOP.ADD_PRINT_TEXT(280,90,45,20,clearCost);
		LODOP.ADD_PRINT_TEXT(280,138,75,20,"损坏赔偿费:");
		LODOP.ADD_PRINT_TEXT(280,216,51,20,reparCost);


	
	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	}
}
function check2(hotelname,nameType,orderNo,roomNo,roomType,discount,name,liveDate,liveCounts,deposit,leaveDate,rent,cost,accounts,
	      refundment,payment,operator,oType,clearCost,reparCost,curTime,print){
var rRealPath= "http://" + window.location.host + Context.Path +"/";
if(CheckLodop()){
	LODOP.SET_PRINT_PAPER(3,-15,756,512,hotelname);
	LODOP.SET_PRINT_PAGESIZE(1,2000,1400,"");
	LODOP.ADD_PRINT_TEXT(36,283,308,35,hotelname+nameType+"凭证");
	LODOP.SET_PRINT_STYLEA(1,"FontSize",18);
	LODOP.SET_PRINT_STYLEA(1,"Bold",1);
	LODOP.ADD_PRINT_HTM(17,189,76,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
	LODOP.ADD_PRINT_TEXT(74,430,43,20,"单号:");
	LODOP.ADD_PRINT_TEXT(74,473,116,20,orderNo);
	LODOP.ADD_PRINT_LINE(96,12,97,750,0,1);
	LODOP.ADD_PRINT_TEXT(105,30,53,30,"房号:");
	LODOP.SET_PRINT_STYLEA(6,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(105,95,79,30,roomNo);
	LODOP.SET_PRINT_STYLEA(7,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(105,347,93,30,"房间类型:");
	LODOP.SET_PRINT_STYLEA(8,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(105,448,90,30,roomType);
	LODOP.SET_PRINT_STYLEA(9,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(148,30,66,30,"折扣价:");
	LODOP.SET_PRINT_STYLEA(10,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(148,99,74,30,discount);
	LODOP.SET_PRINT_STYLEA(11,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(105,177,55,30,"姓名:");
	LODOP.SET_PRINT_STYLEA(12,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(105,244,98,30,name);
	LODOP.SET_PRINT_STYLEA(13,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(148,348,82,30,"入住时间:");
	LODOP.SET_PRINT_STYLEA(14,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(148,433,208,30,liveDate);
	LODOP.SET_PRINT_STYLEA(15,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(194,30,64,30,"住店:");
	LODOP.SET_PRINT_STYLEA(16,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(194,98,76,30,liveCounts);
	LODOP.SET_PRINT_STYLEA(17,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(148,178,56,30,"押金:");
	LODOP.SET_PRINT_STYLEA(18,"FontSize",11);
	LODOP.ADD_PRINT_TEXT(148,244,98,30,deposit);
	LODOP.SET_PRINT_STYLEA(19,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(194,349,82,30,"离店时间:");
	LODOP.SET_PRINT_STYLEA(20,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(194,434,207,30,leaveDate);
	LODOP.SET_PRINT_STYLEA(21,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(194,180,55,30,"房租:");
	LODOP.SET_PRINT_STYLEA(22,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(194,245,98,30,rent);
	LODOP.SET_PRINT_STYLEA(23,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(240,30,81,30,"物品消费:");
	LODOP.SET_PRINT_STYLEA(24,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(240,114,63,30,cost);
	LODOP.SET_PRINT_STYLEA(25,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(284,30,81,30,"结账金额:");
	LODOP.SET_PRINT_STYLEA(26,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(284,115,62,30,accounts);
	LODOP.SET_PRINT_STYLEA(27,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(284,184,82,30,"退款金额:");
	LODOP.SET_PRINT_STYLEA(28,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(284,271,66,30,refundment);
	LODOP.SET_PRINT_STYLEA(29,"FontSize",12);
	LODOP.ADD_PRINT_LINE(370,12,369,752,0,1);
	LODOP.ADD_PRINT_TEXT(286,350,86,30,"付款方式:");
	LODOP.SET_PRINT_STYLEA(31,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(286,442,153,30,payment);
	LODOP.SET_PRINT_STYLEA(32,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(328,30,81,30,"操作员:");
	LODOP.SET_PRINT_STYLEA(33,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(328,124,64,30,operator);
	LODOP.SET_PRINT_STYLEA(34,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(405,30,125,30,"谢谢你的光临！");
	LODOP.SET_PRINT_STYLEA(35,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(404,357,90,30,"宾客签名：");
	LODOP.SET_PRINT_STYLEA(36,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(442,357,57,30,"日期：");
	LODOP.SET_PRINT_STYLEA(37,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(443,416,177,30,curTime);
	LODOP.SET_PRINT_STYLEA(38,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(105,545,95,30,"开房方式:");
	LODOP.SET_PRINT_STYLEA(39,"FontSize",14);
	LODOP.ADD_PRINT_TEXT(105,645,104,30,oType);
	LODOP.SET_PRINT_STYLEA(40,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(240,182,66,30,"清洗费:");
	LODOP.SET_PRINT_STYLEA(41,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(240,254,89,30,clearCost);
	LODOP.SET_PRINT_STYLEA(42,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(240,349,98,30,"损坏赔偿费:");
	LODOP.SET_PRINT_STYLEA(43,"FontSize",12);
	LODOP.ADD_PRINT_TEXT(240,452,92,30,reparCost);
	LODOP.SET_PRINT_STYLEA(44,"FontSize",12);

if(print=="0")
	LODOP.PRINTA();
else if(print=="1")
	LODOP.PREVIEW();
else
  LODOP.PRINT_DESIGN();
}
}	
function checkPart(hotelname,nameType,orderNo,roomNo,roomType,discount,name,liveDate,liveCounts,deposit,leaveDate,rent,cost,accounts,
	      refundment,payment,operator,oType,clearCost,reparCost,curTime,print){
var rRealPath= "http://" + window.location.host + Context.Path +"/";
   if(CheckLodop()){
		LODOP.SET_PRINT_PAPER(1,-10,281,512,hotelname);
		LODOP.SET_PRINT_PAGESIZE(1,750,1350,"");
		LODOP.ADD_PRINT_TEXT(19,94,181,30,hotelname+nameType+"凭证");
		LODOP.SET_PRINT_STYLEA(1,"FontSize",13);
		LODOP.SET_PRINT_STYLEA(1,"Bold",1);
		LODOP.ADD_PRINT_HTM(5,5,71,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
		LODOP.ADD_PRINT_TEXT(51,93,43,20,"单号:");
		LODOP.ADD_PRINT_TEXT(51,136,116,20,orderNo);
		LODOP.ADD_PRINT_LINE(78,12,79,270,0,1);
		LODOP.ADD_PRINT_TEXT(85,30,41,20,"房号:");
		LODOP.ADD_PRINT_TEXT(85,76,41,20,roomNo);
		LODOP.ADD_PRINT_TEXT(85,121,63,20,"房间类型:");
		LODOP.ADD_PRINT_TEXT(85,188,80,20,roomType);
		LODOP.ADD_PRINT_TEXT(139,30,59,20,"折扣价:");
		LODOP.ADD_PRINT_TEXT(140,96,47,20,discount);
		LODOP.ADD_PRINT_TEXT(140,147,41,20,"姓名:");
		LODOP.ADD_PRINT_TEXT(140,190,80,20,name);
		LODOP.ADD_PRINT_TEXT(168,30,69,20,"入住时间:");
		LODOP.ADD_PRINT_TEXT(167,104,164,20,liveDate);
		LODOP.ADD_PRINT_TEXT(197,30,64,20,"住店:");
		LODOP.ADD_PRINT_TEXT(197,98,63,20,liveCounts);
		LODOP.ADD_PRINT_TEXT(196,176,44,20,"押金:");
		LODOP.ADD_PRINT_TEXT(196,222,45,20,deposit);
		LODOP.ADD_PRINT_TEXT(224,30,65,20,"离店时间:");
		LODOP.ADD_PRINT_TEXT(223,102,166,20,leaveDate);
		LODOP.ADD_PRINT_TEXT(250,30,45,20,"房租:");
		LODOP.ADD_PRINT_TEXT(250,87,50,20,rent);
		LODOP.ADD_PRINT_TEXT(248,142,66,20,"物品消费;");
		LODOP.ADD_PRINT_TEXT(248,211,58,20,cost);
		LODOP.ADD_PRINT_TEXT(308,30,62,20,"结账金额:");
		LODOP.ADD_PRINT_TEXT(308,94,49,20,accounts);
		LODOP.ADD_PRINT_TEXT(308,144,63,20,"续费金额:");
		LODOP.ADD_PRINT_TEXT(308,211,55,20,refundment);
		LODOP.ADD_PRINT_LINE(390,12,389,271,0,1);
		LODOP.ADD_PRINT_TEXT(331,30,64,20,"付款方式:");
		LODOP.ADD_PRINT_TEXT(331,115,153,20,payment);
		LODOP.ADD_PRINT_TEXT(364,30,69,20,"操作员:");
		LODOP.ADD_PRINT_TEXT(363,111,64,20,operator);
		LODOP.ADD_PRINT_TEXT(397,30,100,20,"谢谢你的光临！");
		LODOP.ADD_PRINT_TEXT(421,30,69,20,"宾客签名：");
		LODOP.ADD_PRINT_TEXT(445,30,57,20,"日期：");
		LODOP.ADD_PRINT_TEXT(446,89,177,20,curTime);
		LODOP.ADD_PRINT_TEXT(112,30,66,20,"开房方式:");
		LODOP.ADD_PRINT_TEXT(113,102,82,20,oType);
		LODOP.ADD_PRINT_TEXT(280,30,59,20,"清洗费:");
		LODOP.ADD_PRINT_TEXT(280,90,45,20,clearCost);
		LODOP.ADD_PRINT_TEXT(280,138,75,20,"损坏赔偿费:");
		LODOP.ADD_PRINT_TEXT(280,216,51,20,reparCost);
	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	  LODOP.PRINT_DESIGN();
	}
}	
function checkPart2(hotelname,nameType,orderNo,roomNo,roomType,discount,name,liveDate,liveCounts,deposit,leaveDate,rent,cost,accounts,
	      refundment,payment,operator,oType,clearCost,reparCost,curTime,print){
var rRealPath= "http://" + window.location.host + Context.Path +"/";
 if(CheckLodop()){
			 LODOP.SET_PRINT_PAPER(2,-16,756,512,hotelname);
			 LODOP.SET_PRINT_PAGESIZE(1,2000,1400,"");
			 LODOP.ADD_PRINT_TEXT(36,283,308,35,hotelname+nameType+"凭证");
			 LODOP.SET_PRINT_STYLEA(1,"FontSize",18);
			 LODOP.SET_PRINT_STYLEA(1,"Bold",1);
			 LODOP.ADD_PRINT_HTM(17,189,76,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
			 LODOP.ADD_PRINT_TEXT(74,430,43,20,"单号:");
			 LODOP.ADD_PRINT_TEXT(74,473,116,20,orderNo);
			 LODOP.ADD_PRINT_LINE(96,12,97,750,0,1);
			 LODOP.ADD_PRINT_TEXT(108,30,53,30,"房号:");
			 LODOP.SET_PRINT_STYLEA(6,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(107,95,79,30,roomNo);
			 LODOP.SET_PRINT_STYLEA(7,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(108,549,82,30,"房间类型:");
			 LODOP.SET_PRINT_STYLEA(8,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(108,633,116,30,roomType);
			 LODOP.SET_PRINT_STYLEA(9,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(150,30,70,30,"折扣价:");
			 LODOP.SET_PRINT_STYLEA(10,"FontSize",13);
			 LODOP.ADD_PRINT_TEXT(150,109,61,30,discount);
			 LODOP.SET_PRINT_STYLEA(11,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(108,180,51,30,"姓名:");
			 LODOP.SET_PRINT_STYLEA(12,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(108,233,141,30,name);
			 LODOP.SET_PRINT_STYLEA(13,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(150,382,91,30,"入住时间:");
			 LODOP.SET_PRINT_STYLEA(14,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(150,476,260,30,liveDate);
			 LODOP.SET_PRINT_STYLEA(15,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(150,180,54,30,"住店:");
			 LODOP.SET_PRINT_STYLEA(16,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(150,237,135,30,liveCounts);
			 LODOP.SET_PRINT_STYLEA(17,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(190,179,52,30,"押金:");
			 LODOP.SET_PRINT_STYLEA(18,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(190,238,133,30,deposit);
			 LODOP.SET_PRINT_STYLEA(19,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(190,384,86,30,"离店时间:");
			 LODOP.SET_PRINT_STYLEA(20,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(190,474,257,30,leaveDate);
			 LODOP.SET_PRINT_STYLEA(21,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(190,30,55,30,"房租:");
			 LODOP.SET_PRINT_STYLEA(22,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(190,93,75,30,rent);
			 LODOP.SET_PRINT_STYLEA(23,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(232,30,81,30,"物品消费:");
			 LODOP.SET_PRINT_STYLEA(24,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(232,116,70,30,cost);
			 LODOP.SET_PRINT_STYLEA(25,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(274,30,82,30,"结账金额:");
			 LODOP.SET_PRINT_STYLEA(26,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(276,115,71,30,accounts);
			 LODOP.SET_PRINT_STYLEA(27,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(276,187,84,30,"续费金额:");
			 LODOP.SET_PRINT_STYLEA(28,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(276,274,94,30,refundment);
			 LODOP.SET_PRINT_STYLEA(29,"FontSize",12);
			 LODOP.ADD_PRINT_LINE(362,12,361,750,0,1);
			 LODOP.ADD_PRINT_TEXT(276,382,99,30,"付款方式:");
			 LODOP.SET_PRINT_STYLEA(31,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(276,487,239,30,payment);
			 LODOP.SET_PRINT_STYLEA(32,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(316,30,75,30,"操作员:");
			 LODOP.SET_PRINT_STYLEA(33,"FontSize",11);
			 LODOP.ADD_PRINT_TEXT(316,108,166,30,operator);
			 LODOP.SET_PRINT_STYLEA(34,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(397,30,176,30,"谢谢你的光临！");
			 LODOP.SET_PRINT_STYLEA(35,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(402,342,94,30,"宾客签名：");
			 LODOP.SET_PRINT_STYLEA(36,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(453,343,93,30,"日期：");
			 LODOP.SET_PRINT_STYLEA(37,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(454,441,177,30,curTime);
			 LODOP.SET_PRINT_STYLEA(38,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(107,381,81,30,"开房方式:");
			 LODOP.SET_PRINT_STYLEA(39,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(108,463,82,30,oType);
			 LODOP.SET_PRINT_STYLEA(40,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(232,188,69,30,"清洗费:");
			 LODOP.SET_PRINT_STYLEA(41,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(232,261,111,30,clearCost);
			 LODOP.SET_PRINT_STYLEA(42,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(232,384,98,30,"损坏赔偿费:");
			 LODOP.SET_PRINT_STYLEA(43,"FontSize",12);
			 LODOP.ADD_PRINT_TEXT(232,487,242,30,reparCost);
			 LODOP.SET_PRINT_STYLEA(44,"FontSize",12);

	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	  LODOP.PRINT_DESIGN();
	}
}	
function livingPrint(hotelname,orderNo,roomNo,roomType,discount,name,liveDate,deposit,cerType,cerNo,operator,curTime,roomPrice,oType,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){
	LODOP.SET_PRINT_PAPER(1,-10,280,512,hotelname);
	LODOP.SET_PRINT_PAGESIZE(1,750,1350,"");
	LODOP.ADD_PRINT_TEXT(19,94,181,30,hotelname+"入住凭证");
	LODOP.SET_PRINT_STYLEA(1,"FontSize",13);
	LODOP.SET_PRINT_STYLEA(1,"Bold",1);
	LODOP.ADD_PRINT_HTM(5,5,71,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
	LODOP.ADD_PRINT_TEXT(51,93,43,20,"单号:");
	LODOP.ADD_PRINT_TEXT(51,136,116,20,orderNo);
	LODOP.ADD_PRINT_LINE(78,12,79,270,0,1);
	LODOP.ADD_PRINT_TEXT(85,30,41,20,"房号:");
	LODOP.ADD_PRINT_TEXT(85,76,41,20,roomNo);
	LODOP.ADD_PRINT_TEXT(111,30,63,20,"房间类型:");
	LODOP.ADD_PRINT_TEXT(112,100,62,20,roomType);
	LODOP.ADD_PRINT_TEXT(182,31,63,20,"折扣价:");
	LODOP.ADD_PRINT_TEXT(183,99,47,20,discount);
	LODOP.ADD_PRINT_TEXT(85,120,39,20,"姓名:");
	LODOP.ADD_PRINT_TEXT(85,165,105,20,name);
	LODOP.ADD_PRINT_TEXT(211,30,63,20,"入住时间:");
	LODOP.ADD_PRINT_TEXT(210,99,154,20,liveDate);
	LODOP.ADD_PRINT_TEXT(183,156,44,20,"押金:");
	LODOP.ADD_PRINT_TEXT(183,210,43,20,deposit);
	LODOP.ADD_PRINT_TEXT(241,30,65,20,"证件类型:");
	LODOP.ADD_PRINT_TEXT(241,102,93,20,cerType);
	LODOP.ADD_PRINT_TEXT(274,30,63,20,"证件号:");
	LODOP.ADD_PRINT_TEXT(275,99,154,20,cerNo);
	LODOP.ADD_PRINT_TEXT(300,30,69,20,"操作员:");
	LODOP.ADD_PRINT_TEXT(300,105,64,20,operator);
	LODOP.ADD_PRINT_TEXT(334,30,100,20,"谢谢你的光临！");
	LODOP.ADD_PRINT_TEXT(368,30,69,20,"宾客签名：");
	LODOP.ADD_PRINT_TEXT(403,30,57,20,"日期：");
	LODOP.ADD_PRINT_TEXT(404,89,110,20,curTime);
	LODOP.ADD_PRINT_TEXT(156,30,63,20,"标准价:");
	LODOP.ADD_PRINT_TEXT(157,100,63,20,roomPrice);
	LODOP.ADD_PRINT_LINE(326,23,327,259,0,1);
	LODOP.ADD_PRINT_TEXT(133,30,63,20,"开房方式:");
	LODOP.ADD_PRINT_TEXT(133,101,62,20,oType);
	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	}
}
function livingPrint2(hotelname,orderNo,roomNo,roomType,discount,name,liveDate,deposit,cerType,cerNo,operator,curTime,roomPrice,oType,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){

		LODOP.SET_PRINT_PAPER(3,-15,756,512,hotelname);
		LODOP.SET_PRINT_PAGESIZE(1,2000,1400,"");
		LODOP.ADD_PRINT_TEXT(23,283,308,35,hotelname+"入住凭证");
		LODOP.SET_PRINT_STYLEA(1,"FontSize",18);
		LODOP.SET_PRINT_STYLEA(1,"Bold",1);
		LODOP.ADD_PRINT_HTM(4,189,76,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
		LODOP.ADD_PRINT_TEXT(61,430,43,20,"单号:");
		LODOP.ADD_PRINT_TEXT(61,473,116,20,orderNo);
		LODOP.ADD_PRINT_LINE(83,12,84,750,0,1);
		LODOP.ADD_PRINT_TEXT(96,30,55,30,"房号:");
		LODOP.SET_PRINT_STYLEA(6,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(6,"Bold",1);
		LODOP.ADD_PRINT_TEXT(96,89,61,30,roomNo);
		LODOP.SET_PRINT_STYLEA(7,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(96,337,82,30,"房间类型:");
		LODOP.SET_PRINT_STYLEA(8,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(97,423,121,30,roomType);
		LODOP.SET_PRINT_STYLEA(9,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(140,217,75,30,"折扣价:");
		LODOP.SET_PRINT_STYLEA(10,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(10,"Bold",1);
		LODOP.ADD_PRINT_TEXT(141,297,80,30,discount);
		LODOP.SET_PRINT_STYLEA(11,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(11,"Bold",1);
		LODOP.ADD_PRINT_TEXT(96,159,59,30,"姓名:");
		LODOP.SET_PRINT_STYLEA(12,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(96,225,105,30,name);
		LODOP.SET_PRINT_STYLEA(13,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(184,30,81,30,"入住时间:");
		LODOP.SET_PRINT_STYLEA(14,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(183,121,172,30,liveDate);
		LODOP.SET_PRINT_STYLEA(15,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(141,406,52,30,"押金:");
		LODOP.SET_PRINT_STYLEA(16,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(16,"Bold",1);
		LODOP.ADD_PRINT_TEXT(141,458,75,30,deposit);
		LODOP.SET_PRINT_STYLEA(17,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(17,"Bold",1);
		LODOP.ADD_PRINT_TEXT(229,30,83,30,"证件类型:");
		LODOP.SET_PRINT_STYLEA(18,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(229,122,111,30,cerType);
		LODOP.SET_PRINT_STYLEA(19,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(230,250,74,30,"证件号:");
		LODOP.SET_PRINT_STYLEA(20,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(231,337,200,30,cerNo);
		LODOP.SET_PRINT_STYLEA(21,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(271,30,75,30,"操作员:");
		LODOP.SET_PRINT_STYLEA(22,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(271,119,112,30,operator);
		LODOP.SET_PRINT_STYLEA(23,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(356,37,179,30,"谢谢你的光临！");
		LODOP.SET_PRINT_STYLEA(24,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(24,"Bold",1);
		LODOP.ADD_PRINT_TEXT(361,427,125,30,"宾客签名：");
		LODOP.SET_PRINT_STYLEA(25,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(25,"Bold",1);
		LODOP.SET_PRINT_STYLEA(25,"Italic",1);
		LODOP.ADD_PRINT_TEXT(415,427,57,30,"日期：");
		LODOP.SET_PRINT_STYLEA(26,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(416,486,210,30,curTime);
		LODOP.SET_PRINT_STYLEA(27,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(139,30,73,30,"标准价:");
		LODOP.SET_PRINT_STYLEA(28,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(28,"Bold",1);
		LODOP.ADD_PRINT_TEXT(140,116,73,30,roomPrice);
		LODOP.SET_PRINT_STYLEA(29,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(29,"Bold",1);
		LODOP.ADD_PRINT_LINE(316,23,317,751,0,1);
		LODOP.ADD_PRINT_TEXT(98,550,97,30,"开房方式:");
		LODOP.SET_PRINT_STYLEA(31,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(98,649,89,30,oType);
		LODOP.SET_PRINT_STYLEA(32,"FontSize",12);

	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	}
}
function comeOnPrint(hotelname,orderNo,roomNo,roomType,name,liveDate,deposit,operator,curTime,id,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){
	LODOP.SET_PRINT_PAPER(1,-10,280,512,hotelname);
	LODOP.SET_PRINT_PAGESIZE(1,750,940,"");
	LODOP.ADD_PRINT_TEXT(19,94,181,30,hotelname+"存款凭证");
	LODOP.SET_PRINT_STYLEA(1,"FontSize",13);
	LODOP.SET_PRINT_STYLEA(1,"Bold",1);
	LODOP.ADD_PRINT_HTM(5,5,71,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
	LODOP.ADD_PRINT_TEXT(51,93,43,20,"单号:");
	LODOP.ADD_PRINT_TEXT(51,136,116,20,orderNo);
	LODOP.ADD_PRINT_LINE(78,12,79,270,0,1);
	LODOP.ADD_PRINT_TEXT(85,30,41,20,"房号:");
	LODOP.ADD_PRINT_TEXT(85,76,41,20,roomNo);
	LODOP.ADD_PRINT_TEXT(111,30,63,20,"房间类型:");
	LODOP.ADD_PRINT_TEXT(112,100,62,20,roomType);
	LODOP.ADD_PRINT_TEXT(85,125,50,20,"姓名:");
	LODOP.ADD_PRINT_TEXT(86,177,94,20,name);
	LODOP.ADD_PRINT_TEXT(165,30,63,20,"入住时间:");
	LODOP.ADD_PRINT_TEXT(166,99,154,20,liveDate);
	LODOP.ADD_PRINT_TEXT(138,30,63,20,"续存押金:");
	LODOP.ADD_PRINT_TEXT(137,101,43,20,deposit);
	LODOP.ADD_PRINT_TEXT(196,30,63,20,"操作员:");
	LODOP.ADD_PRINT_TEXT(197,99,64,20,operator);
	LODOP.ADD_PRINT_TEXT(233,30,100,20,"谢谢你的光临！");
	LODOP.ADD_PRINT_TEXT(267,30,69,20,"宾客签名：");
	LODOP.ADD_PRINT_TEXT(302,30,57,20,"日期：");
	LODOP.ADD_PRINT_TEXT(303,89,110,20,curTime);
	LODOP.ADD_PRINT_LINE(225,23,226,259,0,1);
	LODOP.ADD_PRINT_TEXT(326,30,63,20,"系统编号:");
	LODOP.ADD_PRINT_TEXT(327,94,173,20,id);

	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	//LODOP.PRINTA();
	//LODOP.PREVIEW();

	}
	
}
function comeOnPrint2(hotelname,orderNo,roomNo,roomType,name,liveDate,deposit,operator,curTime,id,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){
		LODOP.SET_PRINT_PAPER(3,-15,756,512,hotelname);
		LODOP.SET_PRINT_PAGESIZE(1,2000,1400,"");
		LODOP.ADD_PRINT_TEXT(23,283,308,35,hotelname+"存款凭证");
		LODOP.SET_PRINT_STYLEA(1,"FontSize",18);
		LODOP.SET_PRINT_STYLEA(1,"Bold",1);
		LODOP.ADD_PRINT_HTM(4,189,76,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
		LODOP.ADD_PRINT_TEXT(61,430,43,20,"单号:");
		LODOP.ADD_PRINT_TEXT(61,473,116,20,orderNo);
		LODOP.ADD_PRINT_LINE(83,12,84,750,0,1);
		LODOP.ADD_PRINT_TEXT(96,30,55,30,"房号:");
		LODOP.SET_PRINT_STYLEA(6,"FontSize",12);
		LODOP.SET_PRINT_STYLEA(6,"Bold",1);
		LODOP.ADD_PRINT_TEXT(96,89,61,30,roomNo);
		LODOP.SET_PRINT_STYLEA(7,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(96,337,82,30,"房间类型:");
		LODOP.SET_PRINT_STYLEA(8,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(96,423,203,30,roomType);
		LODOP.SET_PRINT_STYLEA(9,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(96,162,70,30,"姓名:");
		LODOP.SET_PRINT_STYLEA(10,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(96,238,94,30,name);
		LODOP.SET_PRINT_STYLEA(11,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(145,253,85,30,"入住时间:");
		LODOP.SET_PRINT_STYLEA(12,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(145,345,286,30,liveDate);
		LODOP.SET_PRINT_STYLEA(13,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(145,29,90,30,"续存押金:");
		LODOP.SET_PRINT_STYLEA(14,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(145,128,107,30,deposit);
		LODOP.SET_PRINT_STYLEA(15,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(195,30,89,30,"操作员:");
		LODOP.SET_PRINT_STYLEA(16,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(195,130,101,30,operator);
		LODOP.SET_PRINT_STYLEA(17,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(265,32,153,30,"谢谢你的光临！");
		LODOP.SET_PRINT_STYLEA(18,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(267,283,95,30,"宾客签名：");
		LODOP.SET_PRINT_STYLEA(19,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(316,285,67,30,"日期：");
		LODOP.SET_PRINT_STYLEA(20,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(318,383,277,30,curTime);
		LODOP.SET_PRINT_STYLEA(21,"FontSize",12);
		LODOP.ADD_PRINT_LINE(237,23,238,739,0,1);
		LODOP.ADD_PRINT_TEXT(360,285,91,30,"系统编号:");
		LODOP.SET_PRINT_STYLEA(23,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(361,389,276,30,id);
		LODOP.SET_PRINT_STYLEA(24,"FontSize",12);


	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	//LODOP.PRINTA();
	//LODOP.PREVIEW();

	}
	
}
function changeRoomPrint(hotelname,orderNo,roomNo,roomType,name,liveDate,price,operator,curTime,oldRoomName,remark,id,roomPrice,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){
	LODOP.SET_PRINT_PAPER(1,-10,280,512,hotelname);
	LODOP.SET_PRINT_PAGESIZE(1,750,1050,"");
	LODOP.ADD_PRINT_TEXT(19,94,181,30,hotelname+"换房凭证");
	LODOP.SET_PRINT_STYLEA(1,"FontSize",13);
	LODOP.SET_PRINT_STYLEA(1,"Bold",1);
	LODOP.ADD_PRINT_HTM(5,5,71,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
	LODOP.ADD_PRINT_TEXT(51,93,43,20,"单号:");
	LODOP.ADD_PRINT_TEXT(51,136,116,20,orderNo);
	LODOP.ADD_PRINT_LINE(78,12,79,270,0,1);
	LODOP.ADD_PRINT_TEXT(85,30,41,20,"新房:");
	LODOP.ADD_PRINT_TEXT(85,98,41,20,roomNo);
	LODOP.ADD_PRINT_TEXT(133,30,63,20,"房间类型:");
	LODOP.ADD_PRINT_TEXT(134,99,62,20,roomType);
	LODOP.ADD_PRINT_TEXT(109,31,60,20,"姓名:");
	LODOP.ADD_PRINT_TEXT(110,98,94,20,name);
	LODOP.ADD_PRINT_TEXT(187,30,63,20,"入住时间:");
	LODOP.ADD_PRINT_TEXT(188,99,154,20,liveDate);
	LODOP.ADD_PRINT_TEXT(160,138,63,20,"补偿差价:");
	LODOP.ADD_PRINT_TEXT(159,209,43,20,price);
	LODOP.ADD_PRINT_TEXT(235,30,63,20,"操作员:");
	LODOP.ADD_PRINT_TEXT(236,99,64,20,operator);
	LODOP.ADD_PRINT_TEXT(272,30,100,20,"谢谢你的光临！");
	LODOP.ADD_PRINT_TEXT(306,30,69,20,"宾客签名：");
	LODOP.ADD_PRINT_TEXT(341,30,57,20,"日期：");
	LODOP.ADD_PRINT_TEXT(342,89,157,20,curTime);
	LODOP.ADD_PRINT_LINE(264,23,265,259,0,1);
	LODOP.ADD_PRINT_TEXT(85,143,39,20,"原房:");
	LODOP.ADD_PRINT_TEXT(85,185,73,20,oldRoomName);
	LODOP.ADD_PRINT_TEXT(212,31,63,20,"换房原因:");
	LODOP.ADD_PRINT_TEXT(213,99,154,21,remark);
	LODOP.ADD_PRINT_TEXT(364,30,63,20,"系统编号:");
	LODOP.ADD_PRINT_TEXT(365,94,156,20,id);
	LODOP.ADD_PRINT_TEXT(160,30,50,20,"房价:");
	LODOP.ADD_PRINT_TEXT(160,86,48,20,roomPrice);


	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	//LODOP.PRINTA();
	//LODOP.PREVIEW();

	}
}
function changeRoomPrint2(hotelname,orderNo,roomNo,roomType,name,liveDate,price,operator,curTime,oldRoomName,remark,id,roomPrice,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){
		LODOP.SET_PRINT_PAPER(3,-15,756,512,hotelname);
		LODOP.SET_PRINT_PAGESIZE(1,2000,1400,"");
		LODOP.ADD_PRINT_TEXT(23,283,308,35,hotelname+"换房凭证");
		LODOP.SET_PRINT_STYLEA(1,"FontSize",18);
		LODOP.SET_PRINT_STYLEA(1,"Bold",1);
		LODOP.ADD_PRINT_HTM(4,189,76,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
		LODOP.ADD_PRINT_TEXT(61,430,43,20,"单号:");
		LODOP.ADD_PRINT_TEXT(61,473,116,20,orderNo);
		LODOP.ADD_PRINT_LINE(83,12,84,750,0,1);
		LODOP.ADD_PRINT_TEXT(108,33,55,30,"新房:");
		LODOP.SET_PRINT_STYLEA(6,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(108,89,133,30,roomNo);
		LODOP.SET_PRINT_STYLEA(7,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(108,362,83,30,"房间类型:");
		LODOP.SET_PRINT_STYLEA(8,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(108,453,184,30,roomType);
		LODOP.SET_PRINT_STYLEA(9,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(147,33,55,30,"姓名:");
		LODOP.SET_PRINT_STYLEA(10,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(147,89,136,30,name);
		LODOP.ADD_PRINT_TEXT(146,227,84,30,"入住时间:");
		LODOP.SET_PRINT_STYLEA(12,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(146,316,321,30,liveDate);
		LODOP.SET_PRINT_STYLEA(13,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(188,228,83,30,"补偿差价:");
		LODOP.SET_PRINT_STYLEA(14,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(188,319,103,30,price);
		LODOP.SET_PRINT_STYLEA(15,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(270,33,71,30,"操作员:");
		LODOP.SET_PRINT_STYLEA(16,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(270,107,171,30,operator);
		LODOP.SET_PRINT_STYLEA(17,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(344,60,126,30,"谢谢你的光临！");
		LODOP.SET_PRINT_STYLEA(18,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(344,326,96,30,"宾客签名：");
		LODOP.SET_PRINT_STYLEA(19,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(396,328,82,30,"日期：");
		LODOP.SET_PRINT_STYLEA(20,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(395,411,209,30,curTime);
		LODOP.SET_PRINT_STYLEA(21,"FontSize",12);
		LODOP.ADD_PRINT_LINE(315,23,316,742,0,1);
		LODOP.ADD_PRINT_TEXT(108,227,60,30,"原房:");
		LODOP.SET_PRINT_STYLEA(23,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(108,288,73,30,oldRoomName);
		LODOP.SET_PRINT_STYLEA(24,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(228,33,93,30,"换房原因:");
		LODOP.SET_PRINT_STYLEA(25,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(228,132,199,30,remark);
		LODOP.SET_PRINT_STYLEA(26,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(442,329,83,30,"系统编号:");
		LODOP.SET_PRINT_STYLEA(27,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(442,414,271,30,id);
		LODOP.ADD_PRINT_TEXT(188,33,55,30,"房价:");
		LODOP.SET_PRINT_STYLEA(29,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(188,100,123,30,roomPrice);
		LODOP.SET_PRINT_STYLEA(30,"FontSize",12);



	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	//LODOP.PRINTA();
	//LODOP.PREVIEW();

	}
}
function cancelPrint(hotelname,orderNo,roomNo,roomType,name,liveDate,price,operator,curTime,id,roomPrice,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){
	LODOP.SET_PRINT_PAPER(1,-10,280,512,hotelname);
	LODOP.SET_PRINT_PAGESIZE(1,750,1000,"");
	LODOP.ADD_PRINT_TEXT(19,94,181,30,hotelname+"撤消凭证");
	LODOP.SET_PRINT_STYLEA(1,"FontSize",13);
	LODOP.SET_PRINT_STYLEA(1,"Bold",1);
	LODOP.ADD_PRINT_HTM(5,5,71,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
	LODOP.ADD_PRINT_TEXT(51,93,43,20,"单号:");
	LODOP.ADD_PRINT_TEXT(51,136,116,20,orderNo);
	LODOP.ADD_PRINT_LINE(78,12,79,270,0,1);
	LODOP.ADD_PRINT_TEXT(85,30,41,20,"房间号:");
	LODOP.ADD_PRINT_TEXT(85,98,41,20,roomNo);
	LODOP.ADD_PRINT_TEXT(133,30,63,20,"房间类型:");
	LODOP.ADD_PRINT_TEXT(134,99,62,20,roomType);
	LODOP.ADD_PRINT_TEXT(109,31,60,20,"姓名:");
	LODOP.ADD_PRINT_TEXT(110,98,94,20,name);
	LODOP.ADD_PRINT_TEXT(187,30,63,20,"入住时间:");
	LODOP.ADD_PRINT_TEXT(188,99,154,20,liveDate);
	LODOP.ADD_PRINT_TEXT(160,138,63,20,"退款金额:");
	LODOP.ADD_PRINT_TEXT(159,209,43,20,price);
	LODOP.ADD_PRINT_TEXT(211,30,63,20,"操作员:");
	LODOP.ADD_PRINT_TEXT(212,99,64,20,operator);
	LODOP.ADD_PRINT_TEXT(248,30,100,20,"谢谢你的光临！");
	LODOP.ADD_PRINT_TEXT(282,30,69,20,"宾客签名：");
	LODOP.ADD_PRINT_TEXT(317,30,57,20,"日期：");
	LODOP.ADD_PRINT_TEXT(318,89,151,20,curTime);
	LODOP.ADD_PRINT_LINE(240,16,241,265,0,1);
	LODOP.ADD_PRINT_TEXT(340,30,63,20,"系统编号:");
	LODOP.ADD_PRINT_TEXT(341,94,156,20,id);
	LODOP.ADD_PRINT_TEXT(160,30,50,20,"房价:");
	LODOP.ADD_PRINT_TEXT(160,86,48,20,roomPrice);


	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	//LODOP.PRINTA();
	//LODOP.PREVIEW();

	}
}
function cancelPrint2(hotelname,orderNo,roomNo,roomType,name,liveDate,price,operator,curTime,id,roomPrice,print){
	var rRealPath= "http://" + window.location.host + Context.Path +"/";
	if(CheckLodop()){
		LODOP.SET_PRINT_PAPER(3,-15,756,512,hotelname);
		LODOP.SET_PRINT_PAGESIZE(1,2000,1400,"");
		LODOP.ADD_PRINT_TEXT(23,283,308,35,hotelname+"撤消凭证");
		LODOP.SET_PRINT_STYLEA(1,"FontSize",18);
		LODOP.SET_PRINT_STYLEA(1,"Bold",1);
		LODOP.ADD_PRINT_HTM(4,189,76,60,"<base href='"+rRealPath+"'/><img border='0' src='images/7.jpg' width='65' height='39' />");
		LODOP.ADD_PRINT_TEXT(61,430,43,20,"单号:");
		LODOP.ADD_PRINT_TEXT(61,473,116,20,orderNo);
		LODOP.ADD_PRINT_LINE(83,12,84,750,0,1);
		LODOP.ADD_PRINT_TEXT(100,30,70,30,"房间号:");
		LODOP.SET_PRINT_STYLEA(6,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(100,114,99,30,roomNo);
		LODOP.SET_PRINT_STYLEA(7,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(100,436,88,30,"房间类型:");
		LODOP.SET_PRINT_STYLEA(8,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(100,532,165,30,roomType);
		LODOP.SET_PRINT_STYLEA(9,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(100,216,60,30,"姓名:");
		LODOP.SET_PRINT_STYLEA(10,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(100,288,126,30,name);
		LODOP.SET_PRINT_STYLEA(11,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(188,30,83,30,"入住时间:");
		LODOP.SET_PRINT_STYLEA(12,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(186,117,282,30,liveDate);
		LODOP.SET_PRINT_STYLEA(13,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(145,219,83,30,"退款金额:");
		LODOP.SET_PRINT_STYLEA(14,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(145,302,105,30,price);
		LODOP.SET_PRINT_STYLEA(15,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(230,31,82,30,"操作员:");
		LODOP.SET_PRINT_STYLEA(16,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(230,117,144,30,operator);
		LODOP.SET_PRINT_STYLEA(17,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(305,38,170,30,"谢谢你的光临！");
		LODOP.SET_PRINT_STYLEA(18,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(305,328,89,30,"宾客签名：");
		LODOP.SET_PRINT_STYLEA(19,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(353,328,72,30,"日期：");
		LODOP.SET_PRINT_STYLEA(20,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(353,407,195,30,curTime);
		LODOP.SET_PRINT_STYLEA(21,"FontSize",12);
		LODOP.ADD_PRINT_LINE(274,16,275,745,0,1);
		LODOP.ADD_PRINT_TEXT(398,329,82,30,"系统编号:");
		LODOP.SET_PRINT_STYLEA(23,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(398,414,319,30,id);
		LODOP.SET_PRINT_STYLEA(24,"FontSize",10);
		LODOP.ADD_PRINT_TEXT(145,30,69,30,"房价:");
		LODOP.SET_PRINT_STYLEA(25,"FontSize",12);
		LODOP.ADD_PRINT_TEXT(145,114,98,30,roomPrice);
		LODOP.SET_PRINT_STYLEA(26,"FontSize",12);



	if(print=="0")
		LODOP.PRINTA();
	else if(print=="1")
		LODOP.PREVIEW();
	else
	    LODOP.PRINT_DESIGN();
	//LODOP.PRINTA();
	//LODOP.PREVIEW();

	}
}
